package N2024.M11.D30;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2025-02-04
 * Time: 23:18
 */
public class test1 {
}
class Singleton{
    private static volatile Singleton instance;

    private Singleton getInstance(){
        if(instance==null){
            synchronized (Singleton.class){
                if (instance==null){
                    instance=new Singleton();
                }
            }
        }
        return instance;
    }
}